<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<ul id="fruitList"></ul>

<script>
    const fruits = ["苹果", "香蕉", "橙子"];
    const ul = document.getElementById("fruitList");

    for (let i = 0; i < fruits.length; i++) {
        const li = document.createElement("li");
        li.textContent = fruits[i];
        ul.appendChild(li);
    }
</script>
</body>
</html>